//
//  HSCCommonFile.swift
//  FamiliesSchoolConnection
//
//  Created by 花花蔡 on 2016/12/23.
//  Copyright © 2016年 com.HuaHuaCai. All rights reserved.
//

import UIKit

let screenWidth:CGFloat = UIScreen.main.bounds.width
let screenHeight:CGFloat = UIScreen.main.bounds.height

let KWidth_ScaleW = screenWidth/414.0
let kWidth_ScaleH = screenHeight/736.0

let leftViewWidth = screenWidth * 0.842

let btnBaseTAG:Int = 100

let IPSaveKey = "ipSaveKey"
let LoginKey = "accountKey"
let userInfoKey = "userInfoKey"
let isLoginKey = "isLoginKey"

let leftViewBgCol:uint = 0xf0f0f0
let blueColor:uint = 0x009ee7
let grayColor:uint = 0xf0f0f0
let objectBlueCol:uint = 0x97fd7ff

//只读计算型属性,不保存值,只参与计算返回最新的值
var baseURLStr:String?{
    
    //获得保存的学校IP
    return UserDefaults.standard.object(forKey: IPSaveKey) as? String
}

var userInfo:NSDictionary {
    //获取用户信息
    return UserDefaults.standard.object(forKey: userInfoKey) as! NSDictionary
}

//获取学生主键
var userID:String {
    
    return (userInfo["id"] ?? "") as! String
}
		
//设置默认参数 （）
//视图的垂直间距
let magin:CGFloat = 8.0
//头像宽度
let imageIconW:CGFloat = 50
//回复列表内容文字大小
let replayFont:UIFont = UIFont.systemFont(ofSize: 12)

